cmake_minimum_required(VERSION 2.8)

message("-- Project: container")

file(GLOB container_src "*.cpp")

add_library(container SHARED ${container_src})
set_target_properties(container PROPERTIES OUTPUT_NAME "container")
target_link_libraries(container stdcrt)

include_directories(
		${PROJECT_SOURCE_DIR}/include
		${PROJECT_SOURCE_DIR}/crt
		${PROJECT_SOURCE_DIR}/extensions/include
		${by3rd_library_include})

if (${WIN_OS})

	target_link_libraries(container shlwapi)

	set(CMAKE_SHARED_LINKER_FLAGS 
		"${CMAKE_SHARED_LINKER_FLAGS} /DEF:${PROJECT_SOURCE_DIR}/container/dllexports.def")


else()

	include_directories(
		/usr/local/include
		/opt/local/include
		/usr/include)

	link_directories(
		/opt/local/lib
		/opt/lib)


	set_target_properties(container PROPERTIES COMPILE_FLAGS ${dynamic})
	set_target_properties(container PROPERTIES COMPILE_FLAGS ${compile})
	set_target_properties(container PROPERTIES LINK_FLAGS ${r_path})

	if(${LINUX_OS})
		target_link_libraries(container dl)
	endif()

	if(${UNIX_OS})
		target_link_libraries(container)
	endif()

endif()









